﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using RealtReview.DataAccess.Entities.IdentityProvider;

namespace RealtReview.DataAccess.Entities
{
    [Table("Comment")]
    public class Comment : BaseEntity
    {
        public string Text { get; set; }
        public DateTime CreatedDate { get; set; }
        public Guid? ReviewId { get; set; }
        public Guid? NewsId { get; set; }
        public virtual News News { get; set; }
        public virtual Review Review { get; set; }
        public Guid UserId { get; set; }
        public virtual ApplicationUser User { get; set; }
    }
}
